package com.zodiac.app.szse.sse.stocklist.dto;

import com.zodiac.app.szse.sse.Industry;
import com.zodiac.app.szse.sse.KcbIndustry;
import com.zodiac.app.szse.sse.SseCommonRequest;
import com.zodiac.app.szse.sse.StockType;
import lombok.Data;

/**
 * 股票列表请求
 */
@Data
public class SseStockListRequest extends SseCommonRequest {
    private String stockCode;
    private String csrcCode;
    private String areaName;
    private String stockType;

    public SseStockListRequest stockType(StockType stockType) {
        this.stockType = stockType.getCode();
        return this;
    }

    public SseStockListRequest csrcCode(KcbIndustry industry) {
        this.csrcCode = industry.getCode();
        return this;
    }

    public SseStockListRequest csrcCode(Industry industry) {
        this.csrcCode = industry.getCode();
        return this;
    }
}
